<?php
/**
 * Created by JieHuiLong.
 * E-mail: jiehuilong@icloud.com
 * Date: 2016/8/16
 * Time: 16:00
 * 域名模型
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Domain extends Model
{
	protected $connection="mysql2";//指定数据库
    public function createPhpData(){
        $strHtml = '<?php ';
        $strHtml .='$data["uid"]='. 1 .';';
        $strHtml .='$data["username"]='. "'JieHuiLong'" .';';
        $strHtml .='$data["email"]='. "'JieHuiLong@icloud.com'" .';';
        $strHtml .= ' ?>';
        return $strHtml;
    }
}
